<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
    <%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
    <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
    
<!DOCTYPE html>
<html>
<head>
<title>左下家居创意设计官网</title> ﻿
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="format-detection" content="telephone=no">
<meta name="renderer" content="webkit">
<meta name="viewport"
	content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no">
<meta http-equiv="Cache-Control" content="no-siteapp" />
<link rel="alternate icon" type="image/png" href="images/favicon.png">
<link rel='icon' href='favicon.ico' type='image/x-ico' />
<meta name="description" content="" />
<meta name="keywords" content="" />
<link rel="stylesheet" href="css/default.min.css?t=227" />
<script type="text/javascript" src="lib/jquery/jquery.min.js"></script>
<script type="text/javascript" src="lib/handlebars/handlebars.min.js"></script>
<script type="text/javascript" src="lib/iscroll/iscroll-probe.js"></script>
<script type="text/javascript" src="lib/amazeui/amazeui.min.js"></script>
<script type="text/javascript" src="lib/raty/jquery.raty.js"></script>
<script type="text/javascript" src="js/main.min.js?t=1"></script>
</head>
<body>

<!--	<div id="head"></div>-->
<!--	<script type="text/javascript">-->
<!--		$('#head').load('head.html')-->
<!--	</script>-->

<!-- TODO 替换为head.html -->
<div class="header-top" >
	<div class="width-center">
		<div class="header-logo ">
			<img src="images/zuoxialogo.jpg" height="100px" width="100px">
		</div>
		<div class="header-title div-inline">
			<strong>左下家居</strong> <span>zuoxiajiaju</span>
		</div>
		<div class="search-box div-inline">
			<div class="input-box">
				<input type="text" name="" id="newT" value="" placeholder="请输入关键字">
			</div>
			<div class="search-botton" onclick=""></div>
		</div>
	</div>
</div>
<div class="header-nav">
	<button class="am-show-sm-only am-collapsed font f-btn"
			data-am-collapse="{target: '.header-nav'}">
		Menu <i class="am-icon-bars"></i>
	</button>
	<nav>
		<ul class="header-nav-ul am-collapse am-in">
			<li class="on"><a href="IndexServlet?reqName=toIndex" name="index">首页</a></li>
			<li><a href="AboutServlet?reqName=toAbout" name="about">关于我们</a></li>
			<li><a href="ProductServlet?reqName=toProductlist&pteid=1" name="show">案例展示</a></li>
			<li><a href="NewsServlet?reqName=tonews" name="new">新闻资讯</a></li>
			<li><a href="LxServlet?reqName=toContact" name="message">联系我们</a>
				<div class="secondary-menu">
					<ul>
						<li><a href="message.jsp" class="message"></a></li>
					</ul>
				</div>
			</li>
		</ul>
	</nav>
</div>
<!-- header end -->

	<div class="am-slider am-slider-default"
		data-am-flexslider="{playAfterPaused: 8000}"></div>
	<section class="pro-list">
		<aside class="pro-leftsidebar">
			<ul>
				<li><a>产品搜索</a>
					<ul id="pro-search">
						<li>
							<input type="text" style="color: white;" name=newsTitle
							id="newsT" value="" class="pro-search">
							<a class="pro-search-btn" onclick="">搜索</a>
						</li>
					</ul>
				</li>
				<li><a>产品分类</a>
					<ul id="pro-category">
						<!-- <li class="">
							<a href="productlist.html">椅子系列</a>
						</li>
						<li class="">
							<a href="productlist.html">餐桌系列</a>
						</li>
						<li class="on">
							<a href="productlist.html">沙发系列</a>
						</li>
						<li class="">
							<a href="productlist.html">创意系列</a>
						</li> -->
						
						<c:forEach items="${protypeList }" var="t">
						<c:choose>
							<c:when test="${pteid == t.pteid }">
							<li class="on">
								<a href="ProductServlet?reqName=toProductlist&pteid=${t.pteid }">${t.ptename }</a>
							</li>
							</c:when>
							<c:otherwise>
							<li class="">
								<a href="ProductServlet?reqName=toProductlist&pteid=${t.pteid }">${t.ptename }</a>
							</li>
							
							
							</c:otherwise>
						</c:choose>
						</c:forEach>
						
					</ul>
				</li>
			</ul>
		</aside>
		<aside class="pro-rightsidebar">
			<header>
				<p></p>
				<span>推荐产品</span>
			</header>
			<ul>
				<!-- <li>
					<a href="productdetails.html">
						<div class="img-box">
							<img src="images/沙发1.jpg">
							<p>沙发名称1</p>
						</div>
					</a>
				</li>
				<li>
					<a href="productdetails.html">
						<div class="img-box">
							<img src="images/沙发2.jpg">
							<p>沙发名称2</p>
						</div>
					</a>
				</li>
				<li>
					<a href="productdetails.html">
						<div class="img-box">
							<img src="images/沙发3.jpg">
							<p>沙发名称3</p>
						</div>
					</a>
				</li>
				<li>
					<a href="productdetails.html">
						<div class="img-box">
							<img src="images/沙发4.jpg">
							<p>沙发名称4</p>
						</div>
					</a>
				</li>
				<li>
					<a href="productdetails.html">
						<div class="img-box">
							<img src="images/沙发5.jpg">
							<p>沙发名称5</p>
						</div>
					</a>
				</li>
				<li>
					<a href="productdetails.html">
						<div class="img-box">
							<img src="images/沙发6.jpg">
							<p>沙发名称6</p>
						</div>
					</a>
				</li>
				<li>
					<a href="productdetails.html">
						<div class="img-box">
							<img src="images/沙发7.jpg">
							<p>沙发名称7</p>
						</div>
					</a>
				</li>
				<li>
					<a href="productdetails.html">
						<div class="img-box">
							<img src="images/沙发8.jpg">
							<p>沙发名称8</p>
						</div>
					</a>
				</li> -->
				
				<c:forEach items="${proList }" var="p">
				<li>
					<a href="ProductServlet?reqName=toProductDetails&proid=${p.proid }">
						<div class="img-box">
							<img src="images/${p.prodefauiimg }">
							<p>${p.proname }</p>
						</div>
					</a>
				</li>
				</c:forEach>
				
			</ul>    
			<div class="pro_list_more_pages">
				<ul>
					<li><a href="#">上一页</a></li>
					<li class="pro-list-current"><a href="#">1</a></li>
					<li><a href="#">2</a></li>
					<li><a href="#">3</a></li>
					<li><a href="#">下一页</a></li>
				</ul>
			</div>
		</aside>
	</section>

<!--	<div id="foot"></div>-->
<!--	<script type="text/javascript">-->
<!--		$('#foot').load('foot.html')-->
<!--	</script>-->

<!-- TODO 替换为foot.html -->

<div>
	<div class="footer-info">
		<div class="footer-content">
			<img src="images/qccode.png" alt="">
			<div>
				<p></p>
				<div class="footer-box">
					<i class="icon-tel"></i>
					<span>公司电话:</span>
					<span>400-921-3900</span>
				</div>
				<div class="footer-box">
					<i class="icon-email"></i>
					<span>公司邮箱:</span>
					<span>4009213900@qq.com</span>
				</div>
				<div class="footer-box">
					<i class="icon-address"></i>
					<span>公司地址:</span>
					<span>河南省驻马店市驿城区驻马店职业技术学院</span>
				</div>
			</div>
		</div>
	</div>
	<style>
		.footer-bottom a{color:#F1404B}
	</style>
	<div class="footer-bottom"><div style="text-align:center;color:#fff;line-height:100px;"><span><a href="http://www.ysd3g.com/" target="_blank" title="好主题">云时代</a>提供 - More Templates <a href="http://www.ysd3g.com/" target="_blank" title="更多信息">更多信息</a> </span></div></div>
</div>

<!-- foot end -->

	<script type="text/javascript">
	    //head中商品搜索
		function selectByTitle() {
			// TODO
			// var newsT = document.getElementById("newT").value;
			// window.location.href = "ProductDetailsServlet?method=selectByTitle&newsTitle="
			// 		+ newsT;
		}
		//左边商品搜索，解决两方法id相同无法正确拿到值
		function productSelect() {
			// TODO
			// var newsT = document.getElementById("newsT").value;
			// window.location.href = "ProductDetailsServlet?method=selectByTitle&newsTitle="
			// 		+ newsT;
		}
	</script>
</body>
</html>